<html>
<head>
<script type="text/javascript" >
          var querydataInc =  new Array();
          var pagenumberInc=1;
      	  var pagesizeInc=6;
          var queryvoInc=new PeopleVO(); //   
          var gridInc =undefined;
		  var modelInc = new dojox.grid.data.Table(null, querydataInc);
          var layoutInc =[{type: 'dojox.GridRowView', width: '20px' },{
               cells: [
                          [
                           //{name: '????', width: 3, get:getChoiseInc},
                           //{ name: 'choise', width: 3, styles: 'text-align: center;', editor: dojox.grid.editors.Bool },//
                           { name: 'No.', width: 2, styles: 'text-align: center;', get: function(inRowIndex){ return inRowIndex+1;} },//
                           {name: 'peopleName', width: 10 ,field:2 }
                         ,   {name: 'peoplePassword', width: 10 }
                         ,   {name: 'remark', width: 10 }
                         ,   {name: 'peopleStatus', width: 10 }
                         ,   {name: 'birthDay', width: 10 }
                         ,   {name: 'sex', width: 10}
                         ,   {name: 'birthPlace', width: 10 }
                         ,   {name: 'address', width: 10}
                         ,   {name: 'tel', width: 10 }
                         ,   {name: 'engageMode', width: 10}
                         ,   {name: 'engageDate', width: 10 }
                         ,   {name: 'grade', width: 10}
                          ] ] }]
						  
		var p = new SOAPClientParameters2();
              //queryvo.id="<%=peoID%>";
			p.add('PeopleVO',queryvo) ;
			p.add('pageNumber',pagenumber) ;
			p.add('pageSize',pagesize) ;
			p.add('orderBy','%') ;
              SOAPClient.invoke(getUrl()+ "services/OrgaPeopleManageService", "getPeople", p, false,  function GetEnu_callBack(ul, soapResponse){   
                        querydataInc=PeopleVOtoArray_fun(ul,true);
						
           //totalCount=ul[ul.length-1]["ns:id"]; 
           //totalpage=Math.ceil(new Number(totalCount)/pagesize);
           //document.getElementById("rowCountInc").innerHTML=" "+pagenumber+" / "+totalpage+" / "+totalCount+" " ;
      }); 
      //querydataInc.splice(querydataInc.length-1,1);
	  if(gridInc==undefined){
	  modelInc = new dojox.grid.data.Table(null, querydataInc);
				 gridInc = new dojox.Grid({
					title: "ff",
					id: "gridInc",
					jsId: "gridInc",
					structure: layoutInc,
					rowCount:querydataInc.length-1,
					model:modelInc,
					singleClickEdit:true
				}, dojo.byId("gridInc"));
				
			}else{ gridInc.model.setData(querydataInc); }
	</script>			
	  
</head>
<body> 

	       	<div align='right'>
	       	         <button dojoType='dijit.form.Button' onclick='selectPeo();'  iconClass='plusIcon'>ok</button>
	          	     <button dojoType='dijit.form.Button' onclick='querydis();' iconClass='plusIcon' >query</button>
                   <button dojoType='dijit.form.Button' onclick='allpage(this);' id='but8Inc' jsId='but8Inc' iconClass='plusIcon'>allpage</button>
	                 <button dojoType='dijit.form.Button' onclick='upPage();' disabled='true' id='but6Inc' jsId='but6Inc' iconClass='plusIcon'>pageup</button>
                   <button dojoType='dijit.form.Button' onclick='downPage();' id='but7Inc' jsId='but7Inc' iconClass='plusIcon'>pagedown</button>
                   
         		</div>   
	        
	      
	         <div id='rowCountInc'></div>
	    <div style='{height:90%;width:100%}'  >
	         <!--div id='gridInc'  dojoType='dojox.Grid' autoWidth='false'  jsId='gridInc'	model='modelInc'  structure='layoutInc'  ></div-->
			 <div id='gridInc'  ></div>
      </div>
</body>
</html>	  